var { Action } = require("../../base/index");
var { randomUtils, clickOneContent } = require("../../utils/index");
var inTask = require("./inTask");
var aTreasure = new Action("开宝箱", {});
aTreasure.exec = function () {
  var contents = ["开宝箱领奖", "点击立得", "点击领"];
  if (clickOneContent(contents)) {
    sleep(randomUtils.getRandom(2, 3, 1000));
    inTask.init();
    return;
  }
};

module.exports = aTreasure;
